﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Subtraction: Calculate
    {
        public override void DisplayResult()
        {
            if (this.a > this.b)
            {
                Console.WriteLine(this.a + "-" + this.b + "=" + (sum = this.a - this.b));
            }
            else
            {
                Console.WriteLine(this.b + "-" + this.a + "=" + (sum = this.b - this.a));
            }
        }
    }
}
